import { get, post } from './request'
 
//添加歌曲
export const insertMusicApi = (data:any) => post(`/music/insert`, data, "post")
//获取所有歌曲
export const musicGetall = (data:any) => post(`/music/getall`, data, "post")
//更具id删除歌曲
export const  deleteMusicByid = (data:any) => post(`/music/delete/${data.id}`, data, "get")
//获取所有歌单
export const  getmusiclist = (data:any) => post(`/musiclist/getall`, data, "post")
//根据歌单id获取歌曲
export const  getbymusiclistByid = (data:any) => post(`/music/getbymusiclist/${data.id}`, data, "post")
//更具id删除歌单
export const  deletemusiclistByid = (data:any) => post(`/musiclist/delete/${data.id}`, data, "get")
//添加歌单
export const insertMenu= (data:any) => post(`/musiclist/insert`, data, "post")
//删除歌单具体歌曲
export const detelebymusicBysongId= (data:any) => post(`/music/detelebymusiclist`, data, "post")
//搜索歌曲
export const searchMusic= (data:any) => post(`/music/search`, data, "post")
//歌单添加歌曲
export const insertbymusiclist= (data:any) => post(`/music/insertbymusiclist`, data, "post")

